#include<iostream>
using namespace std;
int main()
{
	int i;
	cin >> i;
	if (i == 1 || i == 3 || i == 5)
	{
		cout << "NO";
	}
	else
	{
		cout << "YES";
	}
	return 0;
}